import request from '@/utils/request'

// 分页查询所有审核完毕的学生信息
export function getStudentList(data, pageNum) {
  return request({
    url: 'admin/student/search?pageNum=' + pageNum,
    method: 'post',
    data
  })
}

// 添加学生信息
export function addStudent(data) {
  return request({
    url: 'admin/student',
    method: 'post',
    data
  })
}

// 更新学生信息
export function updateStudent(data) {
  return request({
    url: 'admin/student',
    method: 'put',
    data
  })
}

// 删除学生信息
export function deleteStudent(data) {
  return request({
    url: 'admin/student',
    method: 'delete',
    data
  })
}